package org.fin.session.executor;

import org.fin.pojo.Configuration;
import org.fin.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

public interface Executor {

  <R> List<R> query(Configuration configuration, MappedStatement statement, Object... params) throws SQLException;


  void update(Configuration configuration, MappedStatement statement, Object... params) throws SQLException;

  void insert(Configuration configuration, MappedStatement statement, Object... params) throws SQLException;

  void delete(Configuration configuration, MappedStatement statement, Object... params) throws SQLException;
}
